home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / dev / c / AmiVoGL_MDEV.lha / hershey / src / check.c next >
C/C++ Source or Header  |  1994-04-12  |  537b  |  26 lines

  1. /* check.c: */
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include "hershey.h"
  5.  
  6. /* --------------------------------------------------------------------- */
  7.  
  8. extern int    hLoaded;
  9.  
  10. /* --------------------------------------------------------------------- */
  11.  
  12. /*
  13.  * check_loaded
  14.  *
  15.  *     Checks and prints out a message if the font isn't loaded.
  16.  */
  17. void check_loaded(char *who)
  18. {
  19.     if (!hLoaded) {
  20.         fprintf(stderr, "%s: no hershey font loaded.\n", who);
  21.         exit(1);
  22.     }
  23. }
  24.  
  25. /* --------------------------------------------------------------------- */
  26.